package com.zhejiangzhengyuan.municipal_common.entity.vo;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.format.DateTimeFormat;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.sql.Timestamp;
import java.util.Date;
import java.util.List;

/**
 * @author lin_ju
 * Create on 2019/12/16
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="MaintenanceManageVo", description="用于对养护记录管理进行中，案件状态在处理中的查询的结果封装")
public class MaintenanceManageVo {
    @ApiModelProperty(value = "主键id")
    @TableId(value = "id",type = IdType.AUTO)
    @ExcelProperty(value = "自增主键")
    private Long id;
    @ApiModelProperty(value = "道路或桥梁的code")
    @ExcelProperty(value = "道路或桥梁的code")
    private String  targetId;
    @ApiModelProperty(value = "道路或桥梁的名字")
    @ExcelProperty(value = "道路或桥梁的名字")
    private String  targetName;
    @ApiModelProperty(value = "养护缘由")
    @ExcelProperty(value = "养护缘由")
    private String reason;
    @ApiModelProperty(value = "具体描述")
    @ExcelProperty(value = "具体描述")
    private String eventContext;
    @ApiModelProperty(value = "上报人")
    @ExcelProperty(value = "上报人")
    private String username;
    @ApiModelProperty(value = "部门养护单位")
    @ExcelProperty(value = "部门养护单位")
    private String maintenanceUnit;
    @ApiModelProperty(value = "养护结果")
    @ExcelProperty(value = "养护结果")
    private String result;
    @ApiModelProperty(value = "养护开始时间")
    @DateTimeFormat("yyyy年MM月dd日HH时mm分ss秒")
    @ExcelProperty(value = "养护开始时间")
    private Date startTime;
    @ApiModelProperty(value = "养护完成时间")
    @DateTimeFormat("yyyy年MM月dd日HH时mm分ss秒")
    @ExcelProperty(value = "养护完成时间")
    private Date endTime;
    @ApiModelProperty(value = "创建时间")
    private Timestamp createTime;
    @ApiModelProperty(value = "更新时间")
    private Timestamp updateTime;
    @ApiModelProperty(value = "附件")
    @ExcelProperty(value = "附件")
    private List<String> link;
    @ApiModelProperty(value = "附件名")
    @ExcelProperty(value = "附件名")
    private String originName;
    @ApiModelProperty(value = "备注")
    @ExcelProperty(value = "备注")
    private String remark;

}
